<?php

/***  DOCUMENTATION LAYER

Baffle Class Debugging Test

Last Update: Aug 2007
	
DESCRIPTION
	brief description of script here
	
NOTES
		
***/

$_tx0 = microtime();

// Test Name
$test_name = 'debug baffleclass';

// Include Files
require_once('baffle.m01.class.php');

// Variable Declarations
#$foo = 'bar';


// Script
if ( 1 )
{
  $Baffler = new Baffle($debug=1);
  $ref_url = 'http://www.google.com/search?hl=en&q=testing+bafflegate&btnG=Google+Search';
  $Baffler->referrer_url = $ref_url;
  $Baffler->referrer_domain = $Baffler->get_base_domain($Baffler->referrer_url);
  $Baffler->referrer_qstring = $Baffler->get_query_string($ref_url);
  $Baffler->referred_from_search = $Baffler->is_referred_by_seo();
  $Baffler->referring_keywords = $Baffler->get_search_keywords();
  $Baffler->print_d('keywords: ' . $Baffler->referring_keywords);
  $Baffler->dump();
  
  $Baffler2 = new Baffle($debug=1);
  $Baffler2->get_client_data();
  $Baffler2->dump();
}


// Footer
$_txn = microtime();
$stx = number_format(((substr($_txn,0,9)) + (substr($_txn,-10)) - (substr($_tx0,0,9)) - (substr($_tx0,-10))),4); 
echo "<h6>test '$test_name' complete in $stx s</h6>";

?>
